<?php
header("content-type:text/html;charset=utf8");
$pdo = new PDO("mysql:host=127.0.0.1;dbname=11-9;charset=utf8",'root','root');
$name = $_POST['name'];
$pwd = $_POST['pwd'];
$rpwd = $_POST['rpwd'];
$rname = $_POST['rname'];
$pwd = $_POST['gz'];

$sql ="insert into excel values (null,'$name','$pwd','$rpwd','$rname','$pwd')";
//print_r($sql);die;
$res = $pdo->exec($sql);
if ($res)
{
echo "<script>alert('添加成功');location.href='showdo.php'</script>";
}
?>